/* Copyright © Worklight Ltd. 2006-2011.  All rights reserved. */

package com.worklight.wlclient.api;

/**
 * The WLError enum used by WLFailResponse to hold the error type 
 */
public enum WLErrorCode {
	UNEXPECTED_ERROR("Unexpected errorCode occurred. Please try again."),
	REQUEST_TIMEOUT("Request timed out."),
    UNRESPONSIVE_HOST("The service is currently not available."),
    PROCEDURE_ERROR("Procedure invocation errorCode."),
	APP_VERSION_ACCESS_DENIAL("Application version denied."),
	APP_VERSION_ACCESS_NOTIFY("Notify application version changed.");
		
	private final String description;
	
	WLErrorCode(String description) {		
		this.description = description;
    }
    
    public String getDescription() {
        return description;
    }
}
